using UnityEngine;

namespace RStudio.Command
{
    public class CommandGenerator : ICommand
    {
        public string Name => "Generator";
        public string Description => "预制件生成器";
        public CommandPermission RequiredPermission => CommandPermission.Admin;
        public string Category => "General";
        public string Usage => "Generator [参数]";
        
        public string[] ParamArray { get; set; } = System.Array.Empty<string>();


        public bool CanExecute(string[] args)
        {
            return true;
        }

        public bool Execute(string[] args)
        {
            if (!CanExecute(args)) return false;
            
            // TODO: 实现命令逻辑
            Debug.Log($"执行命令: {Name} 参数: {string.Join(", ", args)}");
            
            return true;
        }
    }
}